package com.example.educms;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * 启动类
 */
@SpringBootApplication
//@EnableDiscoveryClient //nacos注册
//@EnableFeignClients //微服务发现调用接口（供别的模块调用这个模块的一些方法）
@ComponentScan(basePackages = {"com.example"})
@MapperScan("com.example.educms.mapper")
public class CmsApplication {
    public static void main(String[] args) {
        SpringApplication.run(CmsApplication.class,args);
        System.out.println("service_cms项目启动成功");
    }
}
